package com.working.home.di

import com.working.home.data.remote.HomeServices
import com.working.home.ui.HomeViewModel
import com.working.home.ui.search.SearchViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
import retrofit2.Retrofit

val homeModule = module {
    single { get<Retrofit>().create(HomeServices::class.java) }
    viewModel { HomeViewModel(get()) }
    viewModel { SearchViewModel(get()) }
}